const mongoose = require("mongoose");
Schema = mongoose.Schema;
const shoeScheam = new Schema({
  code: { type: String },
  sku: { type: String },
  title: { type: String },
  size: { type: Number },
  qty: { type: Number },
  price: { type: String },
  sold_num: { type: Number },
  image1: [{ type: String }],
  brand: { type: String },
  category: { type: String },
  is_hot: { type: Number },
  comment: { type: String }
  // category: { type: mongoose.SchemaTypes.ObjectId, ref: "Category" }
});

module.exports = mongoose.model("shoe", shoeScheam, "shoes");
